{extend name="default/base/base_seller" /}
{block name="seller_main"}
<form method="get">
    <table class="search-form">
        <tr>
            <td>&nbsp;</td>
            <th>{$Think.lang.sellerlog_account}</th>
            <td class="w100"><input type="text" class="text w80" name="seller_name"
                                    value="{$Request.get.seller_name}" /></td>
            <th>{$Think.lang.sellerlog_log_content}</th>
            <td class="w160"><input type="text" class="text w150" name="log_content"
                                    value="{$Request.get.log_content}" /></td>
            <th>{$Think.lang.sellerlog_time}</th>
            <td class="w240">
                <input name="add_time_from" id="add_time_from" type="text" class="text w70"
                       value="{$Request.get.add_time_from}" />
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>&nbsp;&#8211;&nbsp;
                <input name="add_time_to" id="add_time_to" type="text" class="text w70"
                       value="{$Request.get.add_time_to}" />
                <label class="add-on"><i class="iconfont">&#xe8d6;</i></label>
            </td>
            <td class="w70 tc">
                <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
            </td>
        </tr>
    </table>
</form>
<table class="dssc-default-table">
    <thead>
        <tr>
            <th class="w100">{$Think.lang.sellerlog_account}</th>
            <th class="tl">{$Think.lang.sellerlog_log_content}</th>
            <th class="w80">{$Think.lang.ds_state}</th>
            <th class="w110">ip</th>
            <th class="w130">{$Think.lang.sellerlog_time}</th>
        </tr>
    </thead>
    <tbody>
        {if $log_list}
        {foreach name="log_list" item="log"}
        <tr class="bd-line">
            <td height="30">{$log.sellerlog_seller_name}</td>
            <td class="tl">{$log.sellerlog_content}</td>
            <td>{$log.sellerlog_state ? lang('sellerlog_success') : lang('sellerlog_failure')}</td>
            <td>{$log.sellerlog_seller_ip}</td>
            <td>{$log.sellerlog_time|date="Y-m-d H:s"}</td>
        </tr>
        {/foreach}
        {else}
        <tr>
            <td colspan="20" class="norecord">
                <div class="warning-option"><i
                        class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div>
            </td>
        </tr>
        {/if}
    </tbody>
</table>
{$show_page|raw}
<script type="text/javascript">
    $(document).ready(function () {
        $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
        $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>

{/block}
